﻿using UnityEditor;

namespace ProjScan.ScanRuleFixer.Utils
{
    public class Tools
    {
        public static string GetCurrentPlatform()
        {
            string result = "";
            if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.Android)
            {
                return "Android";
            }

            if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.iOS)
            {
                return "iPhone";
            }

            if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.StandaloneWindows || EditorUserBuildSettings.activeBuildTarget == BuildTarget.StandaloneWindows64)
            {
                result = "Standalone";
            }

            return result;
        }
    }
}